package com.yuma.storage.service.impl;

import com.yuma.storage.mapper.StorageMapper;
import com.yuma.storage.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class StorageServiceImpl implements StorageService {

    @Autowired
    private StorageMapper storageMapper;
    @Transactional
    @Override
    public int updateByProductId(Long productId, Integer total) {
        return storageMapper.updateByProductId(productId,total);
    }
}
